package com.example.module_repair.repairnet

import com.example.lib_net.NetModule
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit
import javax.inject.Qualifier
import javax.inject.Singleton


@Module
@InstallIn(SingletonComponent::class)
object RepairNetMoudle {

    @Provides
    @Singleton
    @CommonRepaireApi
    fun provideMineApi(@NetModule.CommonRetrofit retrofit: Retrofit): RepairApi {
        return retrofit.create(RepairApi::class.java)
    }


    @Qualifier
    @Retention(AnnotationRetention.RUNTIME)
    annotation class CommonRepaireApi


}